Optimal. Leaf size=77 \[ -\frac {\tanh ^{-1}\left (\frac {\sqrt {a} \cos (c+d x)}{\sqrt {2} \sqrt {a+a \sin (c+d x)}}\right )}{2 \sqrt {2} a^{3/2} d}-\frac {\cos (c+d x)}{2 d (a+a \sin (c+d x))^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 77, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.214, Rules used = {2729, 2728,
212} \begin {gather*} -\frac {\tanh ^{-1}\left (\frac {\sqrt {a} \cos (c+d x)}{\sqrt {2} \sqrt {a \sin (c+d x)+a}}\right )}{2 \sqrt {2} a^{3/2} d}-\frac {\cos (c+d x)}{2 d (a \sin (c+d x)+a)^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 2728
Rule 2729
Rubi steps
\begin {align*} \int \frac {1}{(a+a \sin (c+d x))^{3/2}} \, dx &=-\frac {\cos (c+d x)}{2 d (a+a \sin (c+d x))^{3/2}}+\frac {\int \frac {1}{\sqrt {a+a \sin (c+d x)}} \, dx}{4 a}\\ &=-\frac {\cos (c+d x)}{2 d (a+a \sin (c+d x))^{3/2}}-\frac {\text {Subst}\left (\int \frac {1}{2 a-x^2} \, dx,x,\frac {a \cos (c+d x)}{\sqrt {a+a \sin (c+d x)}}\right )}{2 a d}\\ &=-\frac {\tanh ^{-1}\left (\frac {\sqrt {a} \cos (c+d x)}{\sqrt {2} \sqrt {a+a \sin (c+d x)}}\right )}{2 \sqrt {2} a^{3/2} d}-\frac {\cos (c+d x)}{2 d (a+a \sin (c+d x))^{3/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 0.11, size = 108, normalized size = 1.40 \begin {gather*} \frac {\left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right ) \left (-\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )+(1+i) (-1)^{3/4} \tanh ^{-1}\left (\left (\frac {1}{2}+\frac {i}{2}\right ) (-1)^{3/4} \left (-1+\tan \left (\frac {1}{4} (c+d x)\right )\right )\right ) (1+\sin (c+d x))\right )}{2 d (a (1+\sin (c+d x)))^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 1.71, size = 125, normalized size = 1.62
method | result | size |
default | \(-\frac {\left (\sqrt {2}\, \arctanh \left (\frac {\sqrt {a -a \sin \left (d x +c \right )}\, \sqrt {2}}{2 \sqrt {a}}\right ) a^{2} \sin \left (d x +c \right )+2 \sqrt {a -a \sin \left (d x +c \right )}\, a^{\frac {3}{2}}+\sqrt {2}\, \arctanh \left (\frac {\sqrt {a -a \sin \left (d x +c \right )}\, \sqrt {2}}{2 \sqrt {a}}\right ) a^{2}\right ) \sqrt {-a \left (\sin \left (d x +c \right )-1\right )}}{4 a^{\frac {7}{2}} \cos \left (d x +c \right ) \sqrt {a +a \sin \left (d x +c \right )}\, d}\) | \(125\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 252 vs.
\(2 (62) = 124\).
time = 0.36, size = 252, normalized size = 3.27 \begin {gather*} \frac {\sqrt {2} {\left (\cos \left (d x + c\right )^{2} - {\left (\cos \left (d x + c\right ) + 2\right )} \sin \left (d x + c\right ) - \cos \left (d x + c\right ) - 2\right )} \sqrt {a} \log \left (-\frac {a \cos \left (d x + c\right )^{2} - 2 \, \sqrt {2} \sqrt {a \sin \left (d x + c\right ) + a} \sqrt {a} {\left (\cos \left (d x + c\right ) - \sin \left (d x + c\right ) + 1\right )} + 3 \, a \cos \left (d x + c\right ) - {\left (a \cos \left (d x + c\right ) - 2 \, a\right )} \sin \left (d x + c\right ) + 2 \, a}{\cos \left (d x + c\right )^{2} - {\left (\cos \left (d x + c\right ) + 2\right )} \sin \left (d x + c\right ) - \cos \left (d x + c\right ) - 2}\right ) + 4 \, \sqrt {a \sin \left (d x + c\right ) + a} {\left (\cos \left (d x + c\right ) - \sin \left (d x + c\right ) + 1\right )}}{8 \, {\left (a^{2} d \cos \left (d x + c\right )^{2} - a^{2} d \cos \left (d x + c\right ) - 2 \, a^{2} d - {\left (a^{2} d \cos \left (d x + c\right ) + 2 \, a^{2} d\right )} \sin \left (d x + c\right )\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{\left (a \sin {\left (c + d x \right )} + a\right )^{\frac {3}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 133 vs.
\(2 (62) = 124\).
time = 0.55, size = 133, normalized size = 1.73 \begin {gather*} \frac {\sqrt {2} {\left (\frac {\log \left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1\right )}{a \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )} - \frac {\log \left (-\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1\right )}{a \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )} - \frac {2 \, \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{{\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1\right )} a \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )}\right )}}{8 \, \sqrt {a} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {1}{{\left (a+a\,\sin \left (c+d\,x\right )\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________